package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import com.ruoyi.system.domain.Opts;
import com.ruoyi.system.domain.Users;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TbRoomReservationMapper;
import com.ruoyi.system.domain.TbRoomReservation;
import com.ruoyi.system.service.ITbRoomReservationService;

/**
 * 预约房源Service业务层处理
 * 
 * @author wish
 * @date 2021-06-18
 */
@Service
public class TbRoomReservationServiceImpl implements ITbRoomReservationService 
{
    @Autowired
    private TbRoomReservationMapper tbRoomReservationMapper;



    /**
     * 查询预约房源列表
     * 
     * @param tbRoomReservation 预约房源
     * @return 预约房源
     */
    @Override
    public List<TbRoomReservation> selectTbRoomReservationList(TbRoomReservation tbRoomReservation)
    {
        return tbRoomReservationMapper.selectTbRoomReservationList(tbRoomReservation);
    }



    @Override
    public List<TbRoomReservation> selectRegionCity() {
        return tbRoomReservationMapper.selectRegionCity();
    }

    @Override
    public List<TbRoomReservation> selectRegionProvince(int provinceId) {
        return tbRoomReservationMapper.selectRegionProvince(provinceId);
    }

    @Override
    public List<TbRoomReservation> selectRegionCount(int countId) {
        return tbRoomReservationMapper.selectRegionCount(countId);
    }

    @Override
    public int addReservation(TbRoomReservation tbRoomReservation) {
        return tbRoomReservationMapper.addReservation(tbRoomReservation);
    }

    @Override
    public List<Opts> getRoomOpts() {
        return tbRoomReservationMapper.getRoomOpts();
    }
}
